DIFxAPI Constants (Constants)
Last changed: anonymous

.
Summary
Main DIFxAPI constants

C# Constants:

const Int32 DRIVER_PACKAGE_REPAIR = 0x00000001;
const Int32 DRIVER_PACKAGE_SILENT = 0x00000002;
const Int32 DRIVER_PACKAGE_FORCE = 0x00000004;
const Int32 DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT = 0x00000008;
const Int32 DRIVER_PACKAGE_LEGACY_MODE = 0x00000010;
const Int32 DRIVER_PACKAGE_DELETE_FILES = 0x00000020;

VB Constants:

Const DRIVER_PACKAGE_REPAIR As Int32 = &H1
Const DRIVER_PACKAGE_SILENT As Int32 = &H2
Const DRIVER_PACKAGE_FORCE As Int32 = &H4
Const DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT As Int32 = &H8
Const DRIVER_PACKAGE_LEGACY_MODE As Int32 = &H10
Const DRIVER_PACKAGE_DELETE_FILES As Int32 = &H20

Notes:

DRIVER_PACKAGE_REPAIR re-installs the specified driver package in the driver store even if the driver package is already installed.
DRIVER_PACKAGE_SILENT suppresses the display of user interface items. If a user interaction is required to complete an installation, the installation will fail.
DRIVER_PACKAGE_FORCE (Applies only to PnP function drivers) preinstalls and installs the specified driver package even if the driver package that is currently installed for a device is not a better match for the device than the specified driver package.
DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT (Applies only to PnP function drivers) preinstalls and installs the driver only if the driver package is a better match to a device in the device tree.
DRIVER_PACKAGE_LEGACY_MODE preinstalls and installs unsigned driver packages and driver packages that cannot be completely preinstalled because there are files that cannot be found.
DRIVER_PACKAGE_DELETE_FILES removes the binary files from a system that were copied to the system when the driver package was installed. The function removes a binary file from the system only if the binary file is identical to the corresponding binary file in the driver store. A caller should use this flag with caution. A caller should only use this flag if the caller can verify that a binary file in the system is not required by any other driver package or application.